<%= error_messages_for 'operation' %>

<!--[form:operation]-->
<p><label for="operation_account">Account</label><br/>
<%= select( 'operation', 'account_id', Accounts.find_all.collect {|account| [account.name + " (" + sprintf("%0.2f \%", account.brokerage_percents) + ")" , account.id]})  %></p>

<p><label for="operation_timestamp">Date</label><br/>
<%= datetime_select 'operation', 'timestamp'  %></p>

<p><label for="operation_share">Share</label><br/>
<%= select( 'operation', 'share_id',  Shares.find_all.collect  {|share| [share.name, share.id]}) %></p>

<p><label for="operation_quantity">Quantity</label><br/>
<%= text_field 'operation', 'quantity'  %></p>

<p><label for="operation_price">Price</label><br/>
<%= text_field 'operation', 'price'  %></p>

<!--[eoform:operation]-->

